package com.itheima.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author guanhuaer
 * @since 2024-09-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Announcement对象", description="")
public class Announcement implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "公告标题")
    private String title;

    @ApiModelProperty(value = "公告内容")
    private String content;

    @ApiModelProperty(value = "发布人")
    private Integer userId;

    @ApiModelProperty(value = "发布人姓名")
    private String userName;

    @ApiModelProperty(value = "公告类型")
    private String type;
    @ApiModelProperty(value = "公告类型名称")
    private String cementType;

    @ApiModelProperty(value = "通知类型")
    private Integer cementTypes;
    @ApiModelProperty(value = "发布时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "公告状态")
    private String status;


    @ApiModelProperty(value = "公告图片")
    @TableField("imgUrl")
    private String imgUrl;

    @ApiModelProperty(value = "附件")
    @TableField("file")
    private String file;

    @ApiModelProperty(value = "附件内容")
    @TableField("fileContent")
    private String fileContent;


}
